home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / NDK / NDK_3.5 / Include / include_h / clib / intuition_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-28  |  11.1 KB  |  198 lines

  1. #ifndef  CLIB_INTUITION_PROTOS_H
  2. #define  CLIB_INTUITION_PROTOS_H
  3.  
  4. /*
  5. **    $VER: intuition_protos.h 40.1 (17.5.1996)
  6. **
  7. **    C prototypes. For use with 32 bit integers only.
  8. **
  9. **    Copyright © 1999 Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif /* __cplusplus */
  16.  
  17. #ifndef  INTUITION_INTUITION_H
  18. #include <intuition/intuition.h>
  19. #endif
  20. #ifndef  INTUITION_CLASSES_H
  21. #include <intuition/classes.h>
  22. #endif
  23. #ifndef  INTUITION_CGHOOKS_H
  24. #include <intuition/cghooks.h>
  25. #endif
  26. #ifndef  INTUITION_CLASSUSR_H
  27. #include <intuition/classusr.h>
  28. #endif
  29. /* Public functions OpenIntuition() and Intuition() are intentionally */
  30. /* not documented. */
  31. VOID OpenIntuition( VOID );
  32. VOID Intuition( struct InputEvent *iEvent );
  33. UWORD AddGadget( struct Window *window, struct Gadget *gadget, ULONG position );
  34. BOOL ClearDMRequest( struct Window *window );
  35. VOID ClearMenuStrip( struct Window *window );
  36. VOID ClearPointer( struct Window *window );
  37. BOOL CloseScreen( struct Screen *screen );
  38. VOID CloseWindow( struct Window *window );
  39. LONG CloseWorkBench( VOID );
  40. VOID CurrentTime( ULONG *seconds, ULONG *micros );
  41. BOOL DisplayAlert( ULONG alertNumber, CONST_STRPTR string, ULONG height );
  42. VOID DisplayBeep( struct Screen *screen );
  43. BOOL DoubleClick( ULONG sSeconds, ULONG sMicros, ULONG cSeconds, ULONG cMicros );
  44. VOID DrawBorder( struct RastPort *rp, CONST struct Border *border, LONG leftOffset, LONG topOffset );
  45. VOID DrawImage( struct RastPort *rp, struct Image *image, LONG leftOffset, LONG topOffset );
  46. VOID EndRequest( struct Requester *requester, struct Window *window );
  47. struct Preferences *GetDefPrefs( struct Preferences *preferences, LONG size );
  48. struct Preferences *GetPrefs( struct Preferences *preferences, LONG size );
  49. VOID InitRequester( struct Requester *requester );
  50. struct MenuItem *ItemAddress( CONST struct Menu *menuStrip, ULONG menuNumber );
  51. BOOL ModifyIDCMP( struct Window *window, ULONG flags );
  52. VOID ModifyProp( struct Gadget *gadget, struct Window *window, struct Requester *requester, ULONG flags, ULONG horizPot, ULONG vertPot, ULONG horizBody, ULONG vertBody );
  53. VOID MoveScreen( struct Screen *screen, LONG dx, LONG dy );
  54. VOID MoveWindow( struct Window *window, LONG dx, LONG dy );
  55. VOID OffGadget( struct Gadget *gadget, struct Window *window, struct Requester *requester );
  56. VOID OffMenu( struct Window *window, ULONG menuNumber );
  57. VOID OnGadget( struct Gadget *gadget, struct Window *window, struct Requester *requester );
  58. VOID OnMenu( struct Window *window, ULONG menuNumber );
  59. struct Screen *OpenScreen( CONST struct NewScreen *newScreen );
  60. struct Window *OpenWindow( CONST struct NewWindow *newWindow );
  61. ULONG OpenWorkBench( VOID );
  62. VOID PrintIText( struct RastPort *rp, CONST struct IntuiText *iText, LONG left, LONG top );
  63. VOID RefreshGadgets( struct Gadget *gadgets, struct Window *window, struct Requester *requester );
  64. UWORD RemoveGadget( struct Window *window, struct Gadget *gadget );
  65. /* The official calling sequence for ReportMouse is given below. */
  66. /* Note the register order.  For the complete story, read the ReportMouse */
  67. /* autodoc. */
  68. VOID ReportMouse( LONG flag, struct Window *window );
  69. VOID ReportMouse1( struct Window *window, LONG flag );
  70. BOOL Request( struct Requester *requester, struct Window *window );
  71. VOID ScreenToBack( struct Screen *screen );
  72. VOID ScreenToFront( struct Screen *screen );
  73. BOOL SetDMRequest( struct Window *window, struct Requester *requester );
  74. BOOL SetMenuStrip( struct Window *window, struct Menu *menu );
  75. VOID SetPointer( struct Window *window, UWORD *pointer, LONG height, LONG width, LONG xOffset, LONG yOffset );
  76. VOID SetWindowTitles( struct Window *window, CONST_STRPTR windowTitle, CONST_STRPTR screenTitle );
  77. VOID ShowTitle( struct Screen *screen, LONG showIt );
  78. VOID SizeWindow( struct Window *window, LONG dx, LONG dy );
  79. struct View *ViewAddress( VOID );
  80. struct ViewPort *ViewPortAddress( CONST struct Window *window );
  81. VOID WindowToBack( struct Window *window );
  82. VOID WindowToFront( struct Window *window );
  83. BOOL WindowLimits( struct Window *window, LONG widthMin, LONG heightMin, ULONG widthMax, ULONG heightMax );
  84. /*--- start of next generation of names -------------------------------------*/
  85. struct Preferences *SetPrefs( CONST struct Preferences *preferences, LONG size, LONG inform );
  86. /*--- start of next next generation of names --------------------------------*/
  87. LONG IntuiTextLength( CONST struct IntuiText *iText );
  88. BOOL WBenchToBack( VOID );
  89. BOOL WBenchToFront( VOID );
  90. /*--- start of next next next generation of names ---------------------------*/
  91. BOOL AutoRequest( struct Window *window, CONST struct IntuiText *body, CONST struct IntuiText *posText, CONST struct IntuiText *negText, ULONG pFlag, ULONG nFlag, ULONG width, ULONG height );
  92. VOID BeginRefresh( struct Window *window );
  93. struct Window *BuildSysRequest( struct Window *window, CONST struct IntuiText *body, CONST struct IntuiText *posText, CONST struct IntuiText *negText, ULONG flags, ULONG width, ULONG height );
  94. VOID EndRefresh( struct Window *window, LONG complete );
  95. VOID FreeSysRequest( struct Window *window );
  96. /* The return codes for MakeScreen(), RemakeDisplay(), and RethinkDisplay() */
  97. /* are only valid under V39 and greater.  Do not examine them when running */
  98. /* on pre-V39 systems! */
  99. LONG MakeScreen( struct Screen *screen );
  100. LONG RemakeDisplay( VOID );
  101. LONG RethinkDisplay( VOID );
  102. /*--- start of next next next next generation of names ----------------------*/
  103. APTR AllocRemember( struct Remember **rememberKey, ULONG size, ULONG flags );
  104. VOID FreeRemember( struct Remember **rememberKey, LONG reallyForget );
  105. /*--- start of 15 Nov 85 names ------------------------*/
  106. ULONG LockIBase( ULONG dontknow );
  107. VOID UnlockIBase( ULONG ibLock );
  108. /*--- functions in V33 or higher (Release 1.2) ---*/
  109. LONG GetScreenData( APTR buffer, ULONG size, ULONG type, CONST struct Screen *screen );
  110. VOID RefreshGList( struct Gadget *gadgets, struct Window *window, struct Requester *requester, LONG numGad );
  111. UWORD AddGList( struct Window *window, struct Gadget *gadget, ULONG position, LONG numGad, struct Requester *requester );
  112. UWORD RemoveGList( struct Window *remPtr, struct Gadget *gadget, LONG numGad );
  113. VOID ActivateWindow( struct Window *window );
  114. VOID RefreshWindowFrame( struct Window *window );
  115. BOOL ActivateGadget( struct Gadget *gadgets, struct Window *window, struct Requester *requester );
  116. VOID NewModifyProp( struct Gadget *gadget, struct Window *window, struct Requester *requester, ULONG flags, ULONG horizPot, ULONG vertPot, ULONG horizBody, ULONG vertBody, LONG numGad );
  117. /*--- functions in V36 or higher (Release 2.0) ---*/
  118. LONG QueryOverscan( ULONG displayID, struct Rectangle *rect, LONG oScanType );
  119. VOID MoveWindowInFrontOf( struct Window *window, struct Window *behindWindow );
  120. VOID ChangeWindowBox( struct Window *window, LONG left, LONG top, LONG width, LONG height );
  121. struct Hook *SetEditHook( struct Hook *hook );
  122. LONG SetMouseQueue( struct Window *window, ULONG queueLength );
  123. VOID ZipWindow( struct Window *window );
  124. /*--- public screens ---*/
  125. struct Screen *LockPubScreen( CONST_STRPTR name );
  126. VOID UnlockPubScreen( CONST_STRPTR name, struct Screen *screen );
  127. struct List *LockPubScreenList( VOID );
  128. VOID UnlockPubScreenList( VOID );
  129. STRPTR NextPubScreen( CONST struct Screen *screen, STRPTR namebuf );
  130. VOID SetDefaultPubScreen( CONST_STRPTR name );
  131. UWORD SetPubScreenModes( ULONG modes );
  132. UWORD PubScreenStatus( struct Screen *screen, ULONG statusFlags );
  133.  
  134. struct RastPort *ObtainGIRPort( struct GadgetInfo *gInfo );
  135. VOID ReleaseGIRPort( struct RastPort *rp );
  136. VOID GadgetMouse( struct Gadget *gadget, struct GadgetInfo *gInfo, WORD *mousePoint );
  137. VOID GetDefaultPubScreen( STRPTR nameBuffer );
  138. LONG EasyRequestArgs( struct Window *window, CONST struct EasyStruct *easyStruct, ULONG *idcmpPtr, CONST APTR args );
  139. LONG EasyRequest( struct Window *window, CONST struct EasyStruct *easyStruct, ULONG *idcmpPtr, ... );
  140. struct Window *BuildEasyRequestArgs( struct Window *window, CONST struct EasyStruct *easyStruct, ULONG idcmp, CONST APTR args );
  141. struct Window *BuildEasyRequest( struct Window *window, CONST struct EasyStruct *easyStruct, ULONG idcmp, ... );
  142. LONG SysReqHandler( struct Window *window, ULONG *idcmpPtr, LONG waitInput );
  143. struct Window *OpenWindowTagList( CONST struct NewWindow *newWindow, CONST struct TagItem *tagList );
  144. struct Window *OpenWindowTags( CONST struct NewWindow *newWindow, ULONG tag1Type, ... );
  145. struct Screen *OpenScreenTagList( CONST struct NewScreen *newScreen, CONST struct TagItem *tagList );
  146. struct Screen *OpenScreenTags( CONST struct NewScreen *newScreen, ULONG tag1Type, ... );
  147.  
  148. /*    new Image functions */
  149. VOID DrawImageState( struct RastPort *rp, struct Image *image, LONG leftOffset, LONG topOffset, ULONG state, CONST struct DrawInfo *drawInfo );
  150. BOOL PointInImage( ULONG point, struct Image *image );
  151. VOID EraseImage( struct RastPort *rp, struct Image *image, LONG leftOffset, LONG topOffset );
  152.  
  153. APTR NewObjectA( struct IClass *classPtr, CONST_STRPTR classID, CONST struct TagItem *tagList );
  154. APTR NewObject( struct IClass *classPtr, CONST_STRPTR classID, ULONG tag1, ... );
  155.  
  156. VOID DisposeObject( APTR object );
  157. ULONG SetAttrsA( APTR object, CONST struct TagItem *tagList );
  158. ULONG SetAttrs( APTR object, ULONG tag1, ... );
  159.  
  160. ULONG GetAttr( ULONG attrID, APTR object, ULONG *storagePtr );
  161.  
  162. /*     special set attribute call for gadgets */
  163. ULONG SetGadgetAttrsA( struct Gadget *gadget, struct Window *window, struct Requester *requester, CONST struct TagItem *tagList );
  164. ULONG SetGadgetAttrs( struct Gadget *gadget, struct Window *window, struct Requester *requester, ULONG tag1, ... );
  165.  
  166. /*    for class implementors only */
  167. APTR NextObject( APTR objectPtrPtr );
  168. struct IClass *MakeClass( CONST_STRPTR classID, CONST_STRPTR superClassID, CONST struct IClass *superClassPtr, ULONG instanceSize, ULONG flags );
  169. VOID AddClass( struct IClass *classPtr );
  170.  
  171.  
  172. struct DrawInfo *GetScreenDrawInfo( struct Screen *screen );
  173. VOID FreeScreenDrawInfo( struct Screen *screen, struct DrawInfo *drawInfo );
  174.  
  175. BOOL ResetMenuStrip( struct Window *window, struct Menu *menu );
  176. VOID RemoveClass( struct IClass *classPtr );
  177. BOOL FreeClass( struct IClass *classPtr );
  178. /*--- functions in V39 or higher (Release 3) ---*/
  179. struct ScreenBuffer *AllocScreenBuffer( struct Screen *sc, struct BitMap *bm, ULONG flags );
  180. VOID FreeScreenBuffer( struct Screen *sc, struct ScreenBuffer *sb );
  181. ULONG ChangeScreenBuffer( struct Screen *sc, struct ScreenBuffer *sb );
  182. VOID ScreenDepth( struct Screen *screen, ULONG flags, APTR reserved );
  183. VOID ScreenPosition( struct Screen *screen, ULONG flags, LONG x1, LONG y1, LONG x2, LONG y2 );
  184. VOID ScrollWindowRaster( struct Window *win, LONG dx, LONG dy, LONG xMin, LONG yMin, LONG xMax, LONG yMax );
  185. VOID LendMenus( struct Window *fromwindow, struct Window *towindow );
  186. ULONG DoGadgetMethodA( struct Gadget *gad, struct Window *win, struct Requester *req, Msg message );
  187. ULONG DoGadgetMethod( struct Gadget *gad, struct Window *win, struct Requester *req, ULONG methodID, ... );
  188. VOID SetWindowPointerA( struct Window *win, CONST struct TagItem *taglist );
  189. VOID SetWindowPointer( struct Window *win, ULONG tag1, ... );
  190. BOOL TimedDisplayAlert( ULONG alertNumber, CONST_STRPTR string, ULONG height, ULONG time );
  191. VOID HelpControl( struct Window *win, ULONG flags );
  192.  
  193. #ifdef __cplusplus
  194. }
  195. #endif /* __cplusplus */
  196.  
  197. #endif   /* CLIB_INTUITION_PROTOS_H */
  198.